package com.kaka.bus.engine.home.info.card;

import com.kaka.bus.bean.CardBean;
import com.kaka.bus.bean.HttpWrapper;
import com.kaka.bus.mvp.BasePresenter;
import com.kaka.bus.mvp.BaseView;

import java.util.List;

public interface CardListContract {
    interface View extends BaseView {
        void onError();

        void onResultStart(HttpWrapper<List<CardBean>> o);

        void onResultLoadMore(HttpWrapper<List<CardBean>> o);

        void refresh(HttpWrapper<List<CardBean>> data);
    }

    interface Presenter extends BasePresenter<View> {

        void initData(String userId, String token, int page, int pageSize);

        void loadMore(String userId, String token, int page, int pageSize);

    }
}
